SQL moving average

visit shbcf.ru